using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;

namespace Programonica.Igramonica.Core
{
    public static class RandomByTicks
    {
        private static int Seed;

        static RandomByTicks()
        {
            RandomByTicks.Seed = (int)DateTime.Now.Ticks;
        }

        public static int Next(int start, int end)
        {
            Random random = new Random(RandomByTicks.Seed);

            RandomByTicks.Seed++;

            return random.Next(start, end);
        }
    }
}